package com.example.monit.conf;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.time.format.DateTimeFormatter;

public class Test {
    public static void main(String[] args) {
        DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
        LocalDateTime dateTime = LocalDateTime.parse("2022-12-09 00:00:00", formatter);
        long milli = dateTime.toInstant(ZoneOffset.of("+8")).toEpochMilli();
        System.out.println(milli);
        System.out.println(dateTime);


    }
}
